/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.kmcsoft.goldshop.currency;

import com.kmcsoft.utils.i18n;
import org.zkoss.zk.ui.Component;
import org.zkoss.zkplus.databind.TypeConverter;

/**
 *
 * @author kmcsoft02
 */
public class StatusConverter implements TypeConverter{

    public Object coerceToUi(Object val, Component comp) {
       if(val instanceof Boolean){
           if((Boolean)val){
               return i18n.l("shop.currency.leftlist.using.string");
           }
       }
       return "";
    }

    public Object coerceToBean(Object val, Component comp) {
        throw new UnsupportedOperationException("Not supported yet.");
    }
    
}
